<template>
	<view class="page">
		<view class="headers">
			<image class="img" src="../static/bg_09.png" mode=""></image>
			<view class="balance-title">当前可用积分</view>
			<view class="money">999</view>
		</view>
		<u-tabs :list="list" :is-scroll="false" :current="current" active-color='#0bbf68' bg-color='transparent' @change="changeTab"></u-tabs>
		
		<view class="empty" v-if="items.length <= 0">
			<u-empty mode='list' text='没有任何记录'></u-empty>
		</view>
		
		
		<view class="content-20" v-else>
		<view class="balance-item">
			<view class="balance-info">
				<view class="title">到店消费</view>
				<view class="amount">-100</view>
			</view>
			<view class="desc">2020-12</view>
		</view>
		
		<view class="balance-item">
			<view class="balance-info">
				<view class="title">钱包充值</view>
				<view class="amount theme">+100</view>
			</view>
			<view class="desc">2020-12</view>
		</view>
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return{
				list: [
					{ name: '获取明细' }, 
					{ name: '使用明细' },
				],
				current: 0,
				items: []
			}
		},
		methods:{
			setIsPopShow(status) {
				this.isShowPop = status
			},
			changeTab(index) {
				this.current = index;
			}
		}
	}
</script>

<style scoped lang="scss">
	@import './pointList.scss';
	.content-20{
		padding: 0 30upx;
	}
	.headers{
		position: relative;
		width: 100%;
		height: 320upx;
		border-radius: 10upx;
		padding: 30upx;
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	.img{
		position: absolute;
		width: 100%;
		height: 100%;
		left: 0;
		top: 0;
		display: block;
	}
	.balance-title{
		position: relative;
		color: #fff;
		font-size: $font-size-24;
		width: 100%;
		text-align: center;
		margin-bottom: 30upx;
	}
	.money{
		font-weight: bold;
		font-size: 90upx;
		line-height: 90upx;
		height: 90upx;
		color: #fff;
		position: relative;
	}
</style>
